#include <stdio.h>
#include <iostream>
void calculate(int val)
{
	static int count=10;
	static int values;
	printf("%d %d\n",values, count++);
	values = val;
}
int main(int n, char** args)
{
	int i, j;
	calculate(i);
	// lan goi thu nhat, cac bien static ben trong ham calculate van duoc giu nguyen gia tri
	calculate(j);
	// lan goi thu hai, cac bien static ben trong ham calculate nhan gia tri truyen vao

	system("pause");
}